<form id="pagerForm" method="post" action="<?echo __WWWROOT__.'Admin/Menu/lookup.php'?>">
	<input type="hidden" name="pageNum" value="<?echo $page['pageNum']?>" />
	<input type="hidden" name="numPerPage" value="<?echo $page['numPerPage']?>" />
	<input type="hidden" name="orderField" value="<?echo $page['orderField']?>" />
	<input type="hidden" name="orderDirection" value="<?echo $page['orderDirection']?>" />
	<input type="hidden" name="id" value="<?echo isset($_POST['id'])?$_POST['id']:''?>">
	<input type="hidden" name="name" value="<?echo isset($_POST['name'])?$_POST['name']:''?>" />
	<input type="hidden" name="url" value="<?echo isset($_POST['url'])?$_POST['url']:''?>" />
</form>

<div class="pageHeader">
	<form onsubmit="return dwzSearch(this, 'dialog');" action="<?echo __WWWROOT__.'Admin/Menu/lookup.php'?>" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					模块ID：<input type="text" name="id" value="" />
				</td>
				<td>
					名称：<input type="text" name="name" value="" />
				</td>
				<td>
					路径：<input type="text" name="url" value="" />
				</td>
				<td>
					<div class="subBar">
						<ul>
							<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
							<li><div class="buttonActive"><div class="buttonContent"><button type="button" onclick="">刷新</button></div></div></li>
						</ul>
					</div>
				</td>
			</tr>
		</table>
	</div>
	</form>
</div>
<div class="pageContent">
	<table class="table" layoutH="118" targettype="dialog" width="100%">
		<thead>
			<tr>
				<th orderField="id" class="<?echo $page['orderDirection']?>">模块ID</th>
				<th>名称</th>
				<th>路径</th>
				<th>查找带回</th>
			</tr>
		</thead>
		<tbody>
			<?foreach($menus as $m){?>
			<tr>
				<td><?echo $m['id']?></td>
				<td><?echo $m['name']?></td>
				<td><?echo $m['url']?></td>
				<td>
					<a class="btnSelect" href="javascript:$.bringBack({parent:'<?echo $m['id']?>', orgName:'<?echo $m['name']?>'})" title="查找带回">选择</a>
				</td>
			</tr>
		    <?}?>
		</tbody>
	</table>
	<?include(ROOT.'Admin/View/Include/lookuppage.php')?>
</div>
